home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
351-375
/
359
/
dice
/
dice.lzh
/
lib
/
string
/
stricmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-05-17
|
375b
|
30 lines
/*
* STRICMP.C
*
* (C)Copyright 1990, Matthew Dillon, All Rights Reserved
*/
#include <string.h>
#include <ctype.h>
typedef unsigned char ubyte;
int
stricmp(s, d)
const char *s;
const char *d;
{
while (tolower(*(ubyte *)s) == tolower(*(ubyte *)d)) {
if (*s == 0)
return(0);
++s;
++d;
}
if ((ubyte)*s < (ubyte)*d)
return(-1);
return(1);
}